#pragma once
#include "BaseObject.h"
#include "../SGD Wrappers/SGD_Listener.h"
#include "Timer.h"

class TripLaser : public BaseObject, public SGD::Listener
{
public:
	TripLaser();
	~TripLaser();


	virtual void Update(float dt)	 override;
//	virtual void Render()			 override;
	virtual void HandleEvent(const SGD::Event* pEvent) override;
	virtual void HandleCollision(const IBase* pOther) override;
	virtual int	GetType(void)	const { return OBJ_TRIP_LASER; }
	void SetShutDownEvent(const char* pEvent) { ShutDownEvent = pEvent; }
	SGD::Rectangle rect;
	


private:

	bool isActive = true;
	Timer m_tStunTimer;
	std::string ShutDownEvent;
};

